﻿using System.Windows;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.PubSubEvents;

namespace FM.矩阵.设置.ViewModels
{
    public class 菜单ViewModel : BindableBase
    {

        public 菜单ViewModel()
        {
            新闻部 = 小冰.新闻部;
            退出Command = new DelegateCommand<object>(退出Action);
            状态查询Command = new DelegateCommand<object>(状态查询Action);
            控制视图Command = new DelegateCommand<object>(控制视图Action);

        }

        private void 控制视图Action(object obj)
        {
            
        }

        private void 状态查询Action(object obj)
        { 
        }

        public IEventAggregator 新闻部 { get; set; }

        public ICommand 状态查询Command { get; set; }

        public ICommand 控制视图Command { get; set; }

      

        public ICommand 退出Command { get; set; }

        private void 退出Action(object obj)
        {
            Application.Current.Shutdown();
        }

    }
}